# require 'rack'
require_relative './timing.rb'

app = proc do |env|
  ['200', {'Content-Type' => 'text/html','Authorazation' => 'dfuhlfhasdfglaisdfglasfguui'}, ['Hello, Rack!']]
end

# # Rack::Handler::WEBrick.run(app, :Port => 8090, :Host => '0.0.0.0')
Rack::Handler::WEBrick.run(Timing.new(app), :Port => 8090, :Host => '0.0.0.0')

# class Hello
#   def self.call(env)
#     ['200', {'Content-Type' => 'text/html'}, ['Hello, Rack!']]
#   end
# end

# class Hello
#   def initialize
#     puts 'Initialize Hello app'
#   end

#   def self.call(env)
#     ['200', {'Content-Type' => 'text/html'}, ['Hello, rackup']]
#   end
# end